<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

.STYLE1 {
	font-size: 14px
}

.mima {
	width: 120px;
}
-->
</style>
<table width="120" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td height="30">&nbsp;</td>
	</tr>
	<tr>
		<td>
		<div align="center" class="p4">&nbsp;用户添加</div>
		</td>
	</tr>
	<tr>
		<td height="2" bgcolor="#31AB94"></td>
	</tr>
	<tr>
		<td height="8"></td>
	</tr>
</table>
<html:form action="user.do?method=save" method="POST">
	<html:hidden property="id" />
	<table width="80%" border="0" align="center" cellpadding="0"
		cellspacing="1" bgcolor="#97916D">
		<tr>
			<td width="20%" height="40" align="right" bgcolor="#F0FBF9"><span
				class="STYLE1">用户名：</span></td>
			<td align="left" bgcolor="#F8F8F8">&nbsp; <html:text
				property="username" size="30" /></td>
		</tr>
		<tr>
			<td height="40" align="right" bgcolor="#F0FBF9"><span
				class="STYLE1">密&nbsp; 码：</span></td>
			<td align="left" bgcolor="#F8F8F8">&nbsp; <html:password
				property="password" size="32" /></td>
		</tr>
		<tr>
			<td height="40" align="right" bgcolor="#F0FBF9"><span
				class="STYLE1">姓名：</span></td>
			<td align="left" bgcolor="#F8F8F8">&nbsp; <html:text
				property="nickname" /></td>
		</tr>
		<tr>
			<td height="50" align="right" bgcolor="#F0FBF9"><span
				class="STYLE1">角色：</span></td>
			<td align="left" bgcolor="#F8F8F8">&nbsp; 
				<c:if test="${!empty roles}">
					<c:forEach items="${roles }" var="role">
						<html:multibox property="roleIds" value="${role.id }"></html:multibox>${role.name}
					</c:forEach>
				</c:if>
			</td>
		</tr>
		<tr>
			<td height="30" colspan="2" align="center" bgcolor="#F8F8F8">&nbsp;
			<html:submit value="提交" />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <html:reset
				value="取消" /></td>
		</tr>
	</table>
</html:form>
